package com.hgyc.mom.eam.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.hgyc.mom.common.annotation.Excel;
import com.hgyc.mom.core.mybatis.EQ;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 设备点检保养计划
 * </p>
 *
 * @author fwj
 * @since 2025-08-13
 */
@Data
@TableName("eam_check_maintain_plan")
@Schema(name="设备点检保养计划对象", description="设备点检保养计划对象")
public class EamCheckMaintainPlan implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "计划ID")
    private Long id;

    @Excel(name = "计划名称")
    @EQ
    @Schema(description = "计划名称")
    private String planName;

    @Excel(name = "计划类型")
    @EQ
    @Schema(description = "计划类型")
    private String planType;

    @Excel(name = "开始日期")
    @EQ
    @Schema(description = "开始日期")
    private LocalDate startDate;

    @Excel(name = "结束日期")
    @EQ
    @Schema(description = "结束日期")
    private LocalDate endDate;

    @Excel(name = "频率")
    @EQ
    @Schema(description = "频率")
    private Integer cycleType;

    @Excel(name = "周期类型")
    @EQ
    @Schema(description = "周期类型")
    private String periodType;

    @Excel(name = "状态")
    @EQ
    @Schema(description = "状态")
    private String status;

    @Excel(name = "备注")
    @Schema(description = "备注")
    private String remark;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建者")
    private Long createBy;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新者")
    private Long updateBy;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

}
